
#include "Timer.h"


timer::timer()
{
  MCCTL = 0xC2; 		 			//MCZI MODMC RDMCL ICLAT FLMC MCEN MCPR1 MCPR0  11000010B		 
                          //Prescaler=8, Clock source=bus clock 
  MCCNT = 3000;					  //1 ms every interrupt
  MCFLG = 0x80;
  m_elapse = 3000;
  m_count = 0;
}


